package com.zb.validation.demo.model.validation;

import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 描述：<p>
 * 分组接口，保存校验
 *
 * <p>
 * 用于{@link Validated}进行分组，配合POJO模型中groups联合使用，达到分组校验的目的
 *
 * <p>
 * For example:
 *
 * <blockquote><pre>
 * {@code
 *     @Validated(value = {GroupA.class, GroupB.class, Default.class})
 *     POJO属性上标注
 *     @NotBlank(groups = {GroupA.class}, message = "name is not null")
 *     private String name;
 *
 *     @NotBlank(groups = {GroupB.class}, message = "age is not null")
 *     private String age;
 * }
 *
 *  </pre></blockquote>
 *
 * @author ZB
 * @version 1.0
 * @see Validated
 * @see Valid
 * @see NotNull
 * @since 1.0
 */
public interface SaveValidation {
}
